package com.blog.service;

import com.blog.pojo.Comment;
import com.blog.vojo.CommentVO;

import java.util.List;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-05-30 17:43
 * FileName: CommentService
 * Description: 评论业务层接口
 */
public interface CommentService {
    /**
     * 获取评论信息的列表
     *
     * @param blogId
     * @return
     */
    List<CommentVO> getCommentList(Long blogId);

    /**
     * 回复评论
     *
     * @param comment
     * @param uid
     */
    boolean replyComment(Comment comment, Long uid);

    /**
     * 删除评论
     * @param blogId
     * @param commentId
     * @param uid
     */
    boolean delComment(Long blogId, Long commentId, Long uid);

    void removeByIds(List<Long> commentIdList);
}
